package com.example.warehouse.sys.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class SysUserRoleAddNewParam implements Serializable {
    /*
     * 用户ID
     */
    @NotNull(message = "请选择用户id")
    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    /*
     * 角色ID
     */
    @NotNull(message = "请选择角色")
    @ApiModelProperty(value = "角色id", required = true)
    private Long roleId;
}
